<!DOCTYPE html>
<!-- saved from url=(0060)https://ent.safe517.com/fdWebCompany/findView/import.import2 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">








<title>万达食品安全追溯系统</title>
<script src="./jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="./custome.js" type="text/javascript" charset="utf-8"></script>	
<script src="./jquery.form.js" type="text/javascript"></script>
<script src="./popup.js" type="text/javascript"></script>
<script src="./common(1).js" type="text/javascript">_csrf&b02b984c-40c2-4d40-bb4c-e2c946d9878a</script>	
<script src="./common1.js" type="text/javascript" charset="utf-8"></script>
<script src="./plupload.full.min.js" type="text/javascript"></script>	
<script src="./reAlert.js" type="text/javascript"></script>	
<link href="./common.css" rel="stylesheet" type="text/css">
<link href="./style.css" rel="stylesheet" type="text/css">
<!-- 图片查看 -->
<script src="./jquery-rotate-2.3.min.js" type="text/javascript"></script>
<script src="./jquery.ui.js" type="text/javascript"></script>
<link href="./foximg.css" rel="stylesheet" type="text/css">
<script src="./foximg.js" type="text/javascript" charset="utf-8"></script>
<!-- <script src="../js/bigimg.js" type="text/javascript" charset="utf-8"></script> -->

<script type="text/javascript">
	var fileServer = "https://image.safe517.com/fdWebFile";
	var imgFilePath="https://image.safe517.com/fdWebFile";
	var circulationType="CATERING";
	var circulationParam={empFile:"从业人员_V20170815.xlsx", outputBatchFile:"发货台账导入_V20170511.xlsx",inputBatchFile:"进货台账导入_V20170511.xlsx",inputMat:"采购品", inputMatFile:"采购品导入_V20170815.xlsx",outputMat:"产出品", outputMatFile:"产出品导入_V20151130.xlsx", menu:"10001,",adminMenu:"10001,10017,11701,11702,11703,"};
	var circulationJobs={jobs:"企业负责人,厨师长,门店经理,大堂经理,原材料检验人员,食品安全负责人,采购负责人,分餐人员,专间操作人员,餐饮具消毒人员,餐饮主管人员,厨师,仓库负责人,仓管人员,其他"};
	/* $('input').bind('input propertychange', function() {
		alert("111");
		$(this).val($(this).val().replace(/([';])+|(--)+/g,"").replace(/<[^>]+>/g,""));
	}); */
	
    //gloabal ajax
    $(document).ajaxComplete(function( event,request, settings ) {
    	if( request.status === 302  || request.status===403){
    		window.location = "..";
    	}
    });
	  //点击查看大图
   $(function(){
	   $('div[rel="img"]').foximg(); 
   })  
	var oldajax = $.ajax;
	$.ajax = function(options){
		if(!(options.headers)){
			options.headers={};
		}
		options.headers['X-CSRF-TOKEN'] = 'b02b984c-40c2-4d40-bb4c-e2c946d9878a';
		return oldajax(options);
	};

	
	
	
	
</script>
</head><body><div id="loading" style="position:absolute; top:50%; left:50%; margin:0 auto; height:300px; z-index: 888; display:none;"><img src="./loading.gif"></div>
   
<script type="text/javascript">
$(function(){
	
	//判断所属环节,并赋值
	var circulationType="CATERING";
	var circulationParam={empFile:"从业人员_V20170815.xlsx", outputBatchFile:"发货台账导入_V20170511.xlsx",inputBatchFile:"进货台账导入_V20170511.xlsx",inputMat:"采购品", inputMatFile:"采购品导入_V20170815.xlsx",outputMat:"产出品", outputMatFile:"产出品导入_V20151130.xlsx", menu:"10001,",adminMenu:"10001,10017,11701,11702,11703,"};
	
	var circuInputMat=circulationParam["inputMat"]+"模板"; 	
	var circuInputMatFile=circulationParam["inputMatFile"]; 
	var circuOutputMat=circulationParam["outputMat"]+"模板"; 
	var circuOutputMatFile=circulationParam["outputMatFile"]; 
	var inputBatchFile=circulationParam["inputBatchFile"]; 
	var outputBatchFile=circulationParam["outputBatchFile"]; 
	var empFile=circulationParam["empFile"];

			$("#inputMat a").attr("href","https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/"+circuInputMatFile);
			$("#inputMatValue").text(circuInputMat);
			$("#inputMatValue2").text(circuInputMat);
			
			$("#outputMat a").attr("href","https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/"+circuOutputMatFile);
			$("#outputMatValue").text(circuOutputMat);
			$("#outputMatValue2").text(circuOutputMat);
			
			$("#inputBatch a").attr("href","https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/"+inputBatchFile);
			$("#outputBatch a").attr("href","https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/"+outputBatchFile);
			
			$("#emp a").attr("href","https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/"+empFile);

			if(circulationType=="CIRCU"){
				document.getElementById("outputMat").style.display="none";
				document.getElementById("meal").style.display="none";
			}else if(circulationType=="PROD"){
				document.getElementById("meal").style.display="none";
			}
			
	//进货台账提交模板excel

    // ajaxForm
    $("#uploadFormInputBath").ajaxForm(options);
    // ajaxSubmit
    $("#uploadFormInputButton").click(function () {
    	$("#inputupload_name").val("");
    	$("#uploadFormInputButton").attr("disabled",true);
    	$("#uploadFormInputButton").removeClass("import_upload").addClass("import_gray")
		$("#uploadFormInputBath").submit();
    	$("#loading").show();
    });
    


    //发货台账提交模板excel
    // ajaxForm
    $("#uploadFormOutputBath").ajaxForm(optionsOutput);
    // ajaxSubmit
    $("#uploadFormOutputButton").click(function () {
    	$("#outputupload_name").val("");
		$("#uploadFormOutputButton").attr("disabled",true);
		$("#uploadFormOutputButton").removeClass("import_upload").addClass("import_gray")
        $("#uploadFormOutputBath").submit();
     	$("#loading").show();
    });
    
  	//留样台账提交模板excel

    // ajaxForm
    $("#uploadFormSampleBath").ajaxForm(sampleOptions);
    // ajaxSubmit
    $("#uploadFormSampleButton").click(function () {
     	$("#sampleupload_name").val("");
    	$("#uploadFormSampleButton").attr("disabled",true);
    	$("#uploadFormSampleButton").removeClass("import_upload").addClass("import_gray")
        $("#uploadFormSampleBath").submit();
     	$("#loading").show();
    });

   	//采购品
    // ajaxForm  uploadFormInputMaterialButton
    $("#uploadFormInputMaterial").ajaxForm(inputMaterialOptions);
    // ajaxSubmit
    $("#uploadFormInputMaterialButton").click(function () {
     	$("#inputMaterialupload_name").val("");
    	$("#uploadFormInputMaterialButton").attr("disabled",true);
    	$("#uploadFormInputMaterialButton").removeClass("import_upload").addClass("import_gray")
        $("#uploadFormInputMaterial").submit();
     	$("#loading").show();
    });
    
   	// 产出品
    // ajaxForm  uploadFormInputMaterialButton
    $("#uploadFormOutputMaterial").ajaxForm(outputMaterialOptions);
    // ajaxSubmit
    $("#uploadFormOutputMaterialButton").click(function () {
     	$("#outputMaterialupload_name").val("");
    	$("#uploadFormOutputMaterialButton").attr("disabled",true);
    	$("#uploadFormOutputMaterialButton").removeClass("import_upload").addClass("import_gray")
        $("#uploadFormOutputMaterial").submit();
     	$("#loading").show();
    });
    
 	//供应商
    // ajaxForm  uploadFormInputMaterialButton
    $("#uploadFormSupplier").ajaxForm(supplierOptions);
    // ajaxSubmit
    $("#uploadFormSupplierButton").click(function () {
     	$("#supplierupload_name").val("");
    	$("#uploadFormSupplierButton").attr("disabled",true);
    	$("#uploadFormSupplierButton").removeClass("import_upload").addClass("import_gray")
        $("#uploadFormSupplier").submit();
     	$("#loading").show();
    });
    //收货商
    // ajaxForm  uploadFormInputMaterialButton
    $("#uploadFormReceiver").ajaxForm(receiverOptions);
    // ajaxSubmit
    $("#uploadFormReceiverButton").click(function () {
     	$("#receiverupload_name").val("");
    	$("#uploadFormReceiverButton").attr("disabled",true);
    	$("#uploadFormReceiverButton").removeClass("import_upload").addClass("import_gray")
        $("#uploadFormReceiver").submit();
     	$("#loading").show();
    });
    //从业人员
    $("#uploadFormComEmployee").ajaxForm(comEmployeeOptions);
    // ajaxSubmit
    $("#uploadFormComEmployeeButton").click(function () {
     	$("#comEmployeeupload_name").val("");
    	$("#uploadFormComEmployeeButton").attr("disabled",true);
    	$("#uploadFormComEmployeeButton").removeClass("import_upload").addClass("import_gray")
        $("#uploadFormComEmployee").submit();
     	$("#loading").show();
    });
    
    //清空 
    $("#inputname").click(function () {
    	$(".upload_ts").html("");
// 		$("#uploadFormInputBath_ts").html("");
    });
    $("#outputname").click(function () {
    	$(".upload_ts").html("");
//     	$("#uploadFormOutputBath_ts").html("");
    });
    $("#samplename").click(function () {
    	$(".upload_ts").html("");
// 		$("#uploadFormInputBath_ts").html("");
    });
    
    $("#inputMaterialName").click(function () {
    	$(".upload_ts").html("");
//     	$("#uploadFormInputMaterial_ts").html("");
    });
    $("#outputMaterialName").click(function () {
    	$(".upload_ts").html("");
//     	$("#uploadFormOutputMaterial_ts").html("");
    });
    $("#supplierName").click(function () {
    	$(".upload_ts").html("");
//     	$("#uploadFormSupplier_ts").html("");
    });
    $("#receiverName").click(function () {
    	$(".upload_ts").html("");
//     	$("#uploadFormReceiver_ts").html("");
    });
    $("#comEmployeeName").click(function () {
    	$(".upload_ts").html("");
//     	$("#uploadFormReceiver_ts").html("");
    });
})
function inputshowname(){
	var tt = document.getElementById("inputname");
	var fileName=tt.value;
	fileName=fileName.substr(fileName.lastIndexOf("\\")+1,fileName.length-1);
	$("#inputupload_name").val(fileName);
    if(fileName!=null&&fileName!=""){
		$("#uploadFormInputButton").attr("disabled",false);
		$("#uploadFormInputButton").removeClass("import_gray").addClass("import_upload");
		var picval = parseInt(tt.files[0].size/1048576);
		console.log(picval);
		if (picval >= 2){
			$("#inputupload_name").val("");
			var ht= "上传文件为"+picval+"M,太大了建议小于2M";
			$("#uploadFormInputBath_ts").text(ht);
			$("#inputname").val("");
			$("#uploadFormInputButton").attr("disabled",true);
			$("#uploadFormInputButton").removeClass("import_upload").addClass("import_gray");
		}
   	}else{
   	  	$("#uploadFormInputButton").attr("disabled",true);
       	$("#uploadFormInputButton").removeClass("import_upload").addClass("import_gray");
   	}
}
function outputshowname(){
	var tt = document.getElementById("outputname");
	var fileName=tt.value;
	fileName=fileName.substr(fileName.lastIndexOf("\\")+1,fileName.length-1);
	$("#outputupload_name").val(fileName);
    if(fileName!=null&&fileName!=""){
		$("#uploadFormOutputButton").attr("disabled",false);
		$("#uploadFormOutputButton").removeClass("import_gray").addClass("import_upload");
		var picval = parseInt(tt.files[0].size/1048576);
		if (picval >= 2){
			$("#outputupload_name").val("");
			var ht= "上传文件为"+picval+"M,太大了建议小于2M";
			$("#uploadFormOutputBath_ts").html(ht);
			$("#outputname").val("");
			$("#uploadFormOutputButton").attr("disabled",true);
			$("#uploadFormOutputButton").removeClass("import_upload").addClass("import_gray");
		}
   	}else{
   	  	$("#uploadFormOutputButton").attr("disabled",true);
       	$("#uploadFormOutputButton").removeClass("import_upload").addClass("import_gray");
   	}
}
function sampleshowname(){
	var tt = document.getElementById("samplename");
	var fileName=tt.value;
	fileName=fileName.substr(fileName.lastIndexOf("\\")+1,fileName.length-1);
	$("#sampleupload_name").val(fileName);
    if(fileName!=null&&fileName!=""){
		$("#uploadFormSampleButton").attr("disabled",false);
		$("#uploadFormSampleButton").removeClass("import_gray").addClass("import_upload");
		var picval = parseInt(tt.files[0].size/1048576);
		if (picval >= 2){
			$("#sampleupload_name").val("");
			var ht= "上传文件为"+picval+"M,太大了建议小于2M";
			$("#uploadFormSampleBath_ts").html(ht);
			$("#samplename").val("");
			$("#uploadFormSampleButton").attr("disabled",true);
			$("#uploadFormSampleButton").removeClass("import_upload").addClass("import_gray");
		}
   	}else{
   	  	$("#uploadFormSampleButton").attr("disabled",true);
       	$("#uploadFormSampleButton").removeClass("import_upload").addClass("import_gray");
   	}
}
function inputMaterialshowname(){
	var tt = document.getElementById("inputMaterialName");
	var fileName=tt.value;
	fileName=fileName.substr(fileName.lastIndexOf("\\")+1,fileName.length-1);
	$("#inputMaterialupload_name").val(fileName);
    if(fileName!=null&&fileName!=""){
		$("#uploadFormInputMaterialButton").attr("disabled",false);
		$("#uploadFormInputMaterialButton").removeClass("import_gray").addClass("import_upload");
		var picval = parseInt(tt.files[0].size/1048576);
		if (picval >= 2){
			$("#inputMaterialupload_name").val("");
			var ht= "上传文件为"+picval+"M,太大了建议小于2M";
			$("#uploadFormInputMaterial_ts").html(ht);
			$("#inputMaterialName").val("");
			$("#uploadFormInputMaterialButton").attr("disabled",true);
			$("#uploadFormInputMaterialButton").removeClass("import_upload").addClass("import_gray");
		}
   	}else{
   	  	$("#uploadFormInputMaterialButton").attr("disabled",true);
       	$("#uploadFormInputMaterialButton").removeClass("import_upload").addClass("import_gray");
   	}
}
function outputMaterialshowname(){
	var tt = document.getElementById("outputMaterialName");
	var fileName=tt.value;
	fileName=fileName.substr(fileName.lastIndexOf("\\")+1,fileName.length-1);
	$("#outputMaterialupload_name").val(fileName);
    if(fileName!=null&&fileName!=""){
		$("#uploadFormOutputMaterialButton").attr("disabled",false);
		$("#uploadFormOutputMaterialButton").removeClass("import_gray").addClass("import_upload");
		var picval = parseInt(tt.files[0].size/1048576);
		if (picval >= 2){
			$("#outputMaterialupload_name").val("");
			var ht= "上传文件为"+picval+"M,太大了建议小于2M";
			$("#uploadFormOutputMaterial_ts").html(ht);
			$("#outputMaterialName").val("");
			$("#uploadFormOutputMaterialButton").attr("disabled",true);
			$("#uploadFormOutputMaterialButton").removeClass("import_upload").addClass("import_gray");
		}
   	}else{
   	  	$("#uploadFormOutputMaterialButton").attr("disabled",true);
       	$("#uploadFormOutputMaterialButton").removeClass("import_upload").addClass("import_gray");
   	}
}
function suppliershowname(){
	var tt = document.getElementById("supplierName");
	var fileName=tt.value;
	fileName=fileName.substr(fileName.lastIndexOf("\\")+1,fileName.length-1);
	$("#supplierupload_name").val(fileName);
    if(fileName!=null&&fileName!=""){
		$("#uploadFormSupplierButton").attr("disabled",false);
		$("#uploadFormSupplierButton").removeClass("import_gray").addClass("import_upload");
		var picval = parseInt(tt.files[0].size/1048576);
		if (picval >= 2){
			$("#supplierupload_name").val("");
			var ht= "上传文件为"+picval+"M,太大了建议小于2M";
			$("#uploadFormSupplier_ts").html(ht);
			$("#supplierName").val("");
			$("#uploadFormSupplierButton").attr("disabled",true);
			$("#uploadFormSupplierButton").removeClass("import_upload").addClass("import_gray");
		}
   	}else{
   	  	$("#uploadFormSupplierButton").attr("disabled",true);
       	$("#uploadFormSupplierButton").removeClass("import_upload").addClass("import_gray");
   	}
}
function receivershowname(){
	var tt = document.getElementById("receiverName");
	var fileName=tt.value;
	fileName=fileName.substr(fileName.lastIndexOf("\\")+1,fileName.length-1);
	$("#receiverupload_name").val(fileName);
    if(fileName!=null&&fileName!=""){
		$("#uploadFormReceiverButton").attr("disabled",false);
		$("#uploadFormReceiverButton").removeClass("import_gray").addClass("import_upload");
		var picval = parseInt(tt.files[0].size/1048576);
		if (picval >= 2){
			$("#receiverupload_name").val("");
			var ht= "上传文件为"+picval+"M,太大了建议小于2M";
			$("#uploadFormReceiver_ts").html(ht);
			$("#receiverName").val("");
			$("#uploadFormReceiverButton").attr("disabled",true);
			$("#uploadFormReceiverButton").removeClass("import_upload").addClass("import_gray");
		}
   	}else{
   	  	$("#uploadFormReceiverButton").attr("disabled",true);
       	$("#uploadFormReceiverButton").removeClass("import_upload").addClass("import_gray");
   	}
}
function comEmployeeshowname(){
	var tt = document.getElementById("comEmployeeName");
	var fileName=tt.value;
	fileName=fileName.substr(fileName.lastIndexOf("\\")+1,fileName.length-1);
	$("#comEmployeeupload_name").val(fileName);
    if(fileName!=null&&fileName!=""){
		$("#uploadFormComEmployeeButton").attr("disabled",false);
		$("#uploadFormComEmployeeButton").removeClass("import_gray").addClass("import_upload");
		var picval = parseInt(tt.files[0].size/1048576);
		if (picval >= 2){
			$("#comEmployeeupload_name").val("");
			var ht= "上传文件为"+picval+"M,太大了建议小于2M";
			$("#uploadFormComEmployee_ts").html(ht);
			$("#comEmployeeName").val("");
			$("#uploadFormComEmployeeButton").attr("disabled",true);
			$("#uploadFormComEmployeeButton").removeClass("import_upload").addClass("import_gray");
		}
   	}else{
   	  	$("#uploadFormComEmployeeButton").attr("disabled",true);
       	$("#uploadFormComEmployeeButton").removeClass("import_upload").addClass("import_gray");
   	}
}
//进货台账提交模板excel
var options = {
	success: function (data) {
	    if(data.status==0){
	    	$("#uploadFormInputBath_ts").text("上传成功！");
	 		setTimeout('cleanShow()',2000); 
	    }else{
	   		if(data.message=="操作失败"){
	       		console.log(data.message);
	        	$("#uploadFormInputBath_ts").text("上传失败:请修正返回的文件中有红色标记的数据!");
	       		window.location.href=imgFilePath+data.body;
	   		}else{
	           	$("#uploadFormInputBath_ts").html(data.message);
	   		}
	    }
		$("#inputname").val("");
		$("#uploadFormInputButton").attr("disabled",true);
		$("#uploadFormInputButton").removeClass("import_upload").addClass("import_gray")
	 	$("#loading").hide();
	}       	
};
//发货台账提交模板excel
var optionsOutput = {
	success: function (data) {
		if(data.status==0){
			$("#uploadFormOutputBath_ts").html("上传成功！");
			setTimeout('cleanShow()',2000); 
		}else{
			if(data.message=="操作失败"){
				console.log(data.message);
				$("#uploadFormOutputBath_ts").html("上传失败:请修正返回的文件中有红色标记的数据!");
				window.location.href=imgFilePath+data.body;
			}else{
				$("#uploadFormOutputBath_ts").html(data.message);
			}
		}
		$("#outputname").val("");
		$("#uploadFormOutputButton").attr("disabled",true);
		$("#uploadFormOutputButton").removeClass("import_upload").addClass("import_gray")
		$("#loading").hide();
	}
};
var sampleOptions = {
	success: function (data) {
		if(data.status==0){
			$("#uploadFormSampleBath_ts").html("上传成功！");
			setTimeout('cleanShow()',2000); 
		}else{
			if(data.message=="操作失败"){
				console.log(data.message);
				$("#uploadFormSampleBath_ts").html("上传失败:请修正返回的文件中有红色标记的数据!");
				window.location.href=imgFilePath+data.body;
			}else{
				$("#uploadFormSampleBath_ts").html(data.message);
			}
		}
		$("#samplename").val("");
		$("#uploadFormSampleButton").attr("disabled",true);
		$("#uploadFormSampleButton").removeClass("import_upload").addClass("import_gray")
		$("#loading").hide();
	}
};
var inputMaterialOptions = {
	success: function (data) {
		if(data.status==0){
			$("#uploadFormInputMaterial_ts").html("上传成功！");
			setTimeout('cleanShow()',2000); 
		}else{
			if(data.message=="操作失败"){
				console.log(data.message);
				$("#uploadFormInputMaterial_ts").html("上传失败:请修正返回的文件中有红色标记的数据!");
				window.location.href=imgFilePath+data.body;
			}else{
				$("#uploadFormInputMaterial_ts").html(data.message);
			}
		}
		$("#inputMaterialName").val("");
		$("#uploadFormInputMaterialButton").attr("disabled",true);
		$("#uploadFormInputMaterialButton").removeClass("import_upload").addClass("import_gray")
		$("#loading").hide();
	}
};
var outputMaterialOptions = {
	success: function (data) {
		if(data.status==0){
			$("#uploadFormOutputMaterial_ts").html("上传成功！");
			setTimeout('cleanShow()',2000); 
		}else{
			if(data.message=="操作失败"){
				console.log(data.message);
				$("#uploadFormOutputMaterial_ts").html("上传失败:请修正返回的文件中有红色标记的数据!");
				window.location.href=imgFilePath+data.body;
			}else{
				$("#uploadFormOutputMaterial_ts").html(data.message);
			}
		}
		$("#outputMaterialName").val("");
		$("#uploadFormOutputMaterialButton").attr("disabled",true);
		$("#uploadFormOutputMaterialButton").removeClass("import_upload").addClass("import_gray")
		$("#loading").hide();
	}
};
var supplierOptions = {
	success: function (data) {
		if(data.status==0){
			$("#uploadFormSupplier_ts").html("上传成功！");
			setTimeout('cleanShow()',2000); 
		}else{
			if(data.message=="操作失败"){
				console.log(data.message);
				$("#uploadFormSupplier_ts").html("上传失败:请修正返回的文件中有红色标记的数据!");
				window.location.href=imgFilePath+data.body;
			}else{
				$("#uploadFormSupplier_ts").html(data.message);
			}
		}
		$("#supplierName").val("");
		$("#uploadFormSupplierButton").attr("disabled",true);
		$("#uploadFormSupplierButton").removeClass("import_upload").addClass("import_gray")
		$("#loading").hide();
	}
};
var receiverOptions = {
	success: function (data) {
		if(data.status==0){
			$("#uploadFormReceiver_ts").html("上传成功！");
			setTimeout('cleanShow()',2000); 
		}else{
			if(data.message=="操作失败"){
				console.log(data.message);
				$("#uploadFormReceiver_ts").html("上传失败:请修正返回的文件中有红色标记的数据!");
				window.location.href=imgFilePath+data.body;
			}else{
				$("#uploadFormReceiver_ts").html(data.message);
			}
		}
		$("#receiverName").val("");
		$("#uploadFormReceiverButton").attr("disabled",true);
		$("#uploadFormReceiverButton").removeClass("import_upload").addClass("import_gray")
		$("#loading").hide();
	}
};
var comEmployeeOptions = {
	success: function (data) {
		if(data.status==0){
			$("#uploadFormComEmployee_ts").html("上传成功！");
			setTimeout('cleanShow()',2000); 
		}else{
			if(data.message=="操作失败"){
				console.log(data.message);
				$("#uploadFormComEmployee_ts").html("上传失败:请修正返回的文件中有红色标记的数据!");
				window.location.href=imgFilePath+data.body;
			}else{
				$("#uploadFormComEmployee_ts").html(data.message);
			}
		}
		$("#comEmployeeName").val("");
		$("#uploadFormComEmployeeButton").attr("disabled",true);
		$("#uploadFormComEmployeeButton").removeClass("import_upload").addClass("import_gray")
		$("#loading").hide();
	}
};
function cleanShow(){ 
	$("#uploadFormInputBath_ts").html("");
	$("#uploadFormOutputBath_ts").html("");
	$("#uploadFormSampleBath_ts").html("");
	$("#uploadFormInputMaterial_ts").html("");
	$("#uploadFormOutputMaterial_ts").html("");
	$("#uploadFormInputMaterial_ts").html("");	
	$("#uploadFormOutputMaterial_ts").html("");
	$("#uploadFormComEmployee_ts").html("");
} 
</script>	


<div class="main_box">
     <div class="main_con">
          <h3 class="process_title"><span>当前位置: </span><a href="https://ent.safe517.com/fdWebCompany/findView/import.import2#">数据导入</a></h3>
          <div class="import_table">
          	<div>
				<div style="width:100%;height:20px;font:14px/20px &#39;Simsun&#39;;color:red;text-align:left;background:yellow;">进货台账和发货台账导入模板有新模板V20170511，非此模板的请更新。</div>
			</div>
               <h4 class="import_title">台账</h4>
               <table class="import_list">
                   <tbody><tr>
                      <td class="td_imlf">
                          <i class="im1"></i>
                          <span>进货台账</span>
                      </td>
                      <td style="padding-right:0;">
                          <div class="import_down" id="inputBatch">
                               <i class="i_down"></i>
                               <a href="https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/%E8%BF%9B%E8%B4%A7%E5%8F%B0%E8%B4%A6%E5%AF%BC%E5%85%A5_V20170511.xlsx">进货台账模板</a>
                          </div>
                          <div class="import_upload">
                              <div class="import_img">
                                   <input type="text" class="import_name" value="" id="inputupload_name">
                                   <input type="text" class="btn_query" value="选择文件">
                              </div>
                              <div class="import_cont">
                              <form id="uploadFormInputBath" action="https://ent.safe517.com/fdWebCompany/inputManage/inputBatch/importInputBatch" method="post" enctype="multipart/form-data">
                                   <input accept=".xlsx" type="file" class="import_file" value="" name="name" id="inputname" onchange="javascript:inputshowname()">
                                   <input id="uploadFormInputButton" type="button" class="import_gray" disabled="disabled" value="上传">
                                   <span id="uploadFormInputBath_ts" class="file_ts" style=""></span>
                              </form>
                              </div>
                          </div>
                      </td>
                   </tr>
                   <tr>
                      <td class="td_imlf">
                          <i class="im2"></i>
                          <span>发货台账</span>
                      </td>
                      <td style="padding-right:0;">
                          <div class="import_down" id="outputBatch">
                               <i class="i_down"></i>
                               <a href="https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/%E5%8F%91%E8%B4%A7%E5%8F%B0%E8%B4%A6%E5%AF%BC%E5%85%A5_V20170511.xlsx">发货台账模板</a>
                          </div>
                          <div class="import_upload">
                              <div class="import_img">
                                   <input type="text" class="import_name" value="" id="outputupload_name">
                                   <input type="text" class="btn_query" value="选择文件"><!--覆盖的样式-->
                              </div>
                              <div class="import_cont">
                              <form id="uploadFormOutputBath" action="https://ent.safe517.com/fdWebCompany/outputManage/outputBatch/importOutputBatch" method="post" enctype="multipart/form-data">
                                   <input accept=".xlsx" type="file" class="import_file" value="" name="name" id="outputname" onchange="javascript:outputshowname()"> <!--未选择路径上导入不能点击  disabled="disabled"-->
                                   <input id="uploadFormOutputButton" type="button" class="import_gray" disabled="disabled" value="上传">          <!--若导入不能点击 上传状态为灰色  gray-->
                                   <span id="uploadFormOutputBath_ts" class="file_ts" style=""></span>
                              </form>
                              </div>
                          </div>
                      </td>
                   </tr>
                   <tr id="meal">
                      <td class="td_imlf">
                          <i class="im7"></i>
                          <span>留样登记台账</span>
                      </td>
                      <td style="padding-right:0;">
                          <div class="import_down">
                               <i class="i_down"></i>
                               
                               <a href="https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/%E7%95%99%E6%A0%B7%E7%99%BB%E8%AE%B0_V20151230.xlsx">留样登记台账模板</a>
                          </div>
                          <div class="import_upload">
                              <div class="import_img">
                                   <input type="text" class="import_name" value="" id="sampleupload_name">
                                   <input type="text" class="btn_query" value="选择文件"><!--覆盖的样式-->
                              </div>
                              <div class="import_cont">
                              <form id="uploadFormSampleBath" action="https://ent.safe517.com/fdWebCompany/retentionSample/importSample" method="post" enctype="multipart/form-data">
                                   <input accept=".xlsx" type="file" class="import_file" value="" name="name" id="samplename" onchange="javascript:sampleshowname()"> <!--未选择路径上导入不能点击  disabled="disabled"-->
                                   <input id="uploadFormSampleButton" type="button" class="import_gray" disabled="disabled" value="上传">          <!--若导入不能点击 上传状态为灰色  gray-->
                                   <span id="uploadFormSampleBath_ts" class="file_ts" style=""></span>
                              </form>
                              </div>
                          </div>
                      </td>
                   </tr>
               </tbody></table>
          </div>
          <div class="import_table">
               <h4 class="import_title">基础数据</h4>
               <table class="import_list">
                   <tbody><tr>
                      <td class="td_imlf">
                          <i class="im3"></i>
                          <span id="inputMatValue2">采购品模板</span>
                      </td>
                      <td style="padding-right:0;">
                          <div class="import_down" id="inputMat">
                               <i class="i_down"></i>
                               <a href="https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/%E9%87%87%E8%B4%AD%E5%93%81%E5%AF%BC%E5%85%A5_V20170815.xlsx"><span id="inputMatValue">采购品模板</span></a>
                          </div>
                          <div class="import_upload">
                              <div class="import_img">
                                   <input type="text" class="import_name" value="" id="inputMaterialupload_name">
                                   <input type="text" class="btn_query" value="选择文件"><!--覆盖的样式-->
                              </div>
                              <div class="import_cont">
                              <form id="uploadFormInputMaterial" action="https://ent.safe517.com/fdWebCompany/inputManage/inputMaterial/importInputMaterial" method="post" enctype="multipart/form-data">
                                   <input accept=".xlsx" type="file" class="import_file" value="" name="name" id="inputMaterialName" onchange="javascript:inputMaterialshowname()"> <!--未选择路径上导入不能点击  disabled="disabled"-->
                                   <input id="uploadFormInputMaterialButton" type="button" class="import_gray" disabled="disabled" value="上传">          <!--若导入不能点击 上传状态为灰色  gray-->
                                   <span id="uploadFormInputMaterial_ts" class="file_ts" style=""></span>
                              </form>
                              </div>
                          </div>
                      </td>
                   </tr>
                   <tr id="outputMat">
                      <td class="td_imlf">
                          <i class="im4"></i>
                           <span id="outputMatValue2">产出品模板</span>
                      </td>
                      <td style="padding-right:0;">
                          <div class="import_down">
                               <i class="i_down"></i>
                               <a href="https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/%E4%BA%A7%E5%87%BA%E5%93%81%E5%AF%BC%E5%85%A5_V20151130.xlsx"><span id="outputMatValue">产出品模板</span></a>
                          </div>
                          <div class="import_upload">
                              <div class="import_img">
                                   <input type="text" class="import_name" value="" id="outputMaterialupload_name">
                                   <input type="text" class="btn_query" value="选择文件"><!--覆盖的样式-->
                              </div>
                              <div class="import_cont">
                                   <form id="uploadFormOutputMaterial" action="https://ent.safe517.com/fdWebCompany/outputManage/outputMaterial/importOutputMaterial" method="post" enctype="multipart/form-data">
                                        <input accept=".xlsx" type="file" class="import_file" value="" name="name" id="outputMaterialName" onchange="javascript:outputMaterialshowname()"> <!--未选择路径上导入不能点击  disabled="disabled"-->
                                        <input id="uploadFormOutputMaterialButton" type="button" class="import_gray" disabled="disabled" value="上传">          <!--若导入不能点击 上传状态为灰色  gray-->
                                        <span id="uploadFormOutputMaterial_ts" class="file_ts" style=""></span>
                                   </form>
                              </div>
                          </div>
                      </td>
                   </tr>
                   <tr>
                      <td class="td_imlf">
                          <i class="im5"></i>
                          <span>供应商</span>
                      </td>
                      <td style="padding-right:0;">
                          <div class="import_down">
                               <i class="i_down"></i>
                               
                               <a href="https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/%E4%BE%9B%E5%BA%94%E5%95%86%E5%AF%BC%E5%85%A5_V20160130.xlsx">供应商模板</a>
                          </div>
                          <div class="import_upload">
                              <div class="import_img">
                                   <input type="text" class="import_name" value="" id="supplierupload_name">
                                   <input type="text" class="btn_query" value="选择文件"><!--覆盖的样式-->
                              </div>
                              <div class="import_cont">
                                   <form id="uploadFormSupplier" action="https://ent.safe517.com/fdWebCompany/inputManage/supplier/importSupplier" method="post" enctype="multipart/form-data">
                                        <input accept=".xlsx" type="file" class="import_file" value="" name="name" id="supplierName" onchange="javascript:suppliershowname()"> <!--未选择路径上导入不能点击  disabled="disabled"-->
                                        <input id="uploadFormSupplierButton" type="button" class="import_gray" disabled="disabled" value="上传">          <!--若导入不能点击 上传状态为灰色  gray-->
                                        <span id="uploadFormSupplier_ts" class="file_ts" style=""></span>
                                   </form>
                              </div>
                          </div>
                      </td>
                   </tr>
                   <tr>
                      <td class="td_imlf">
                          <i class="im6"></i>
                          <span>收货商</span>
                      </td>
                      <td style="padding-right:0;">
                          <div class="import_down">
                               <i class="i_down"></i>
                               
                               <a href="https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/%E6%94%B6%E8%B4%A7%E5%95%86%E5%AF%BC%E5%85%A5_V20160130.xlsx">收货商模板</a>
                          </div>
                          <div class="import_upload">
                              <div class="import_img">
                                   <input type="text" class="import_name" value="" id="receiverupload_name">
                                   <input type="text" class="btn_query" value="选择文件"><!--覆盖的样式-->
                              </div>
                              <div class="import_cont">
                                   <form id="uploadFormReceiver" action="https://ent.safe517.com/fdWebCompany/inputManage/receiver/importReceiver" method="post" enctype="multipart/form-data">
                                        <input accept=".xlsx" type="file" class="import_file" value="" name="name" id="receiverName" onchange="javascript:receivershowname()"> <!--未选择路径上导入不能点击  disabled="disabled"-->
                                        <input id="uploadFormReceiverButton" type="button" class="import_gray" disabled="disabled" value="上传">          <!--若导入不能点击 上传状态为灰色  gray-->
                                        <span id="uploadFormReceiver_ts" class="file_ts" style=""></span>
                                   </form>
                              </div>
                          </div>
                      </td>
                   </tr>
                   <tr>
                      <td class="td_imlf">
                          <i class="im8"></i>
                          <span>从业人员</span>
                      </td>
                      <td style="padding-right:0;">
                          <div class="import_down" id="emp">
                               <i class="i_down"></i>
                               <a href="https://image.safe517.com/fdWebFile/attach/IMPORT_EXCEL_TEMPLATE/%E4%BB%8E%E4%B8%9A%E4%BA%BA%E5%91%98_V20170815.xlsx">从业人员模板</a>
                               
                          </div>
                          <div class="import_upload">
                              <div class="import_img">
                                   <input type="text" class="import_name" value="" id="comEmployeeupload_name">
                                   <input type="text" class="btn_query" value="选择文件"><!--覆盖的样式-->
                              </div>
                              <div class="import_cont">
                                   <form id="uploadFormComEmployee" action="https://ent.safe517.com/fdWebCompany/restaurant/comEmployee/importComEmployee" method="post" enctype="multipart/form-data">
                                        <input accept=".xlsx" type="file" class="import_file" value="" name="name" id="comEmployeeName" onchange="javascript:comEmployeeshowname()"> <!--未选择路径上导入不能点击  disabled="disabled"-->
                                        <input id="uploadFormComEmployeeButton" type="button" class="import_gray" disabled="disabled" value="上传">          <!--若导入不能点击 上传状态为灰色  gray-->
                                        <span id="uploadFormComEmployee_ts" class="file_ts" style=""></span>
                                   </form>
                              </div>
                          </div>
                      </td>
                   </tr>
               </tbody></table>
          </div>
          <div class="import_prompt">
               <div class="prompt_lf">
                    <h5>导入方法：</h5>
                    <p>请下载相应的模板，并将台账数据填到模板中，<br>保存后将该文件上传系统。</p>
                    <h6>常见问题：</h6>
                    <p>1.使用的模板不是最新的模板。如模板有更新，应用会在导入时候用红色字体标注;</p>
                    <p>2.Excel版本低。应用需要使用Excel2007及以上版本编制的excel文件，即文件扩展名为xlsx的文件可被识别。</p>
               </div>
               <div class="prompt_rt">
                    <h5>注：</h5>
                    <p>1.模板数据顺序不允许修改</p>
                    <p>2.下拉选择的数据项不能填写选项以外的数据</p>
                    <p>3.上传的文件必须是原来的模板文件</p>
                    <p class="yellow">4.上传的文件大小不超过2M</p>
               </div>
               <div class="clear"></div>
          </div>
     </div>
</div>

</body></html>